package com.worthtech.billportal.service.imp;

import java.util.Hashtable;
import java.util.List;

import com.worthtech.billportal.bean.CsPosInformationLy;
import com.worthtech.billportal.dao.PosScreeninoDAO;
import com.worthtech.billportal.service.PosScreeninoService;

public class PosScreeninoServiceImp implements PosScreeninoService {

	private PosScreeninoDAO posinfodao;

	public PosScreeninoDAO getPosinfodao() {
		return posinfodao;
	}

	public void setPosinfodao(PosScreeninoDAO posinfodao) {
		this.posinfodao = posinfodao;
	}

	public void delPosinfo(CsPosInformationLy cp) {
		this.getPosinfodao().delPosinfo(cp);
	}

	public List getHql(String tableName, int startPage, int perNo,
			String orderby) {
		List ls = this.getPosinfodao().getHql(tableName, startPage, perNo, orderby);
		return ls;
	}

	public String getviewsql(String sql){
		return this.getPosinfodao().getviewsql(sql);
 	}

	public List getListSql(String sql) {
		return this.getPosinfodao().getListSql(sql);
	}

	public void updatePosinfo(CsPosInformationLy str) {
		this.getPosinfodao().updatePosinfo(str);
	}

	public String countNum(String name,String sql) {
		return this.getPosinfodao().countNum(name,sql);
	}

	public Hashtable getlist(String tablename, String code, String start,
			String end, String sqlstr) {
		// TODO Auto-generated method stub
		
		return this.getPosinfodao().getlist(tablename, code, start, end, sqlstr);
	}

	public Hashtable getlistinfo() {
		// TODO Auto-generated method stub
		
		return this.getPosinfodao().getlistinfo();
	}

	public Hashtable getlistsdinfo(String sql) {
		// TODO Auto-generated method stub
		return this.getPosinfodao().getlistsdinfo(sql);
	}

	
}
